import request from '@/utils/request'

// 查询
export function query(data) {
  return request({
    url: `mes/m/toolGroup/query`,
    method: 'post',
    data
  })
}
// 根据ID查询
export function getById(id) {
  return request({
    url: `mes/m/toolGroup/getById/${id}`,
    method: 'get'
  })
}
// 保存
export function save(data) {
  return request({
    url: `mes/m/toolGroup/save`,
    method: 'put',
    data
  })
}
// 删除
export function remove(data) {
  return request({
    url: `mes/m/toolGroup/delete`,
    method: 'delete',
    data
  })
}
